package cn.luischen.service.user.impl;

import cn.luischen.dao.UserDao;
import cn.luischen.exception.BusinessException;
import cn.luischen.model.UserDomain;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class UserServiceImpl2 {
    private final UserDao userDao;

    private UserDao userDao2;

    public int updateUserInfo(UserDomain user) {
        if (null == user.getUid())
            throw BusinessException.withErrorCode("用户编号不可能为空");
        return userDao.updateUserInfo(user);
    }
}
